package com.OA.entity;

import java.util.Date;

/**
 * 站内信实体类
 * @author z_z_h
 *
 */
public class Message {
	//用户表id
	private int userId;
	//用户表姓名
	private String userName;
	//用户表姓名
	private String userPass;
	//信息表id
	private int mid;
	//标题
	private String title;
	//信息内容
	private String content;
	//发件人
	private String addresser;
	//发件人id
	private int addresserId;
	//收件人
	private String recipients;
	//收件人id
	private int recipientsId;
	//日期
	private Date messageDate;
	//状态：1表示已读，0表示未读
	private int state;
	//草稿箱：1表示是草稿，0表示不是草稿
	private int draft;
	//回收站：1表示是，0表示不是
	private int recycle;
	//字符串类型的日期
	private String stringDate;
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserPass() {
		return userPass;
	}
	public void setUserPass(String userPass) {
		this.userPass = userPass;
	}
	public int getMid() {
		return mid;
	}
	public void setMid(int mid) {
		this.mid = mid;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getAddresser() {
		return addresser;
	}
	public void setAddresser(String addresser) {
		this.addresser = addresser;
	}
	public int getAddresserId() {
		return addresserId;
	}
	public void setAddresserId(int addresserId) {
		this.addresserId = addresserId;
	}
	public String getRecipients() {
		return recipients;
	}
	public void setRecipients(String recipients) {
		this.recipients = recipients;
	}
	public int getRecipientsId() {
		return recipientsId;
	}
	public void setRecipientsId(int recipientsId) {
		this.recipientsId = recipientsId;
	}
	public Date getMessageDate() {
		return messageDate;
	}
	public void setMessageDate(Date messageDate) {
		this.messageDate = messageDate;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public int getDraft() {
		return draft;
	}
	public void setDraft(int draft) {
		this.draft = draft;
	}
	public int getRecycle() {
		return recycle;
	}
	public void setRecycle(int recycle) {
		this.recycle = recycle;
	}
	public String getStringDate() {
		return stringDate;
	}
	public void setStringDate(String stringDate) {
		this.stringDate = stringDate;
	}
	/**
	 * 构造方法
	 * @param userId
	 * @param userName
	 * @param mid
	 * @param title
	 * @param content
	 * @param addresser
	 * @param addresserId
	 * @param recipients
	 * @param recipientsId
	 * @param messageDate
	 * @param state
	 * @param draft
	 * @param recycle
	 */
	public Message(String title, String content, String addresser,
			int addresserId, String recipients, int recipientsId, int state, int draft, int recycle) {
		this.title = title;
		this.content = content;
		this.addresser = addresser;
		this.addresserId = addresserId;
		this.recipients = recipients;
		this.recipientsId = recipientsId;
		this.state = state;
		this.draft = draft;
		this.recycle = recycle;
	}
	/**
	 * 无参构造方法
	 */
	public Message() {
	}
	@Override
	public String toString() {
		return "Message [userId=" + userId + ", userName=" + userName + ", mid=" + mid + ", title=" + title
				+ ", content=" + content + ", addresser=" + addresser + ", addresserId=" + addresserId + ", recipients="
				+ recipients + ", recipientsId=" + recipientsId + ", messageDate=" + messageDate + ", state=" + state
				+ ", draft=" + draft + ", recycle=" + recycle + "]";
	}	
}
